﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting;

namespace iPdf
{
    /// <summary>
    /// This is a simple class to pass messages between instances of
    /// the DocList Uploader application.
    /// </summary>
    class RemoteMessage : MarshalByRefObject
    {
        /// <summary>
        /// Passes a task back to the listening instance.
        /// </summary>
        /// <param name="task">The task to send across the wire.</param>
        public static void SendMessage(Task task)
        {
            TaskQueue.AddTask(task);
        }
    }
}
